package com.george.common.entity.vo.payment;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @title: MallWeixinPayReq.java
 * @description: 微信支付请求实体
 * @author: George
 * @date: 2023/6/28 9:11
 */
@Data
public class MallWeixinPayReq {
    /**
     * 订单号
     */
    @NotEmpty(message = "订单号不能为空")
    @ApiModelProperty(value = "订单号")
    private String orderNo;

    /**
     * 用户id
     */
    @NotEmpty(message = "userId不能为空")
    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private String userId;

    /**
     * 用户token
     */
    @NotEmpty(message = "userToken不能为空")
    @ApiModelProperty(value = "用户token")
    private String userToken;
    /**
     * 微信用户openid
     */
    @ApiModelProperty(value = "微信用户openid")
    private String openid;

    /**
     * 微信支付方式：JSAPI，Native
     */
    @ApiModelProperty(value = "微信支付方式：JSAPI，Native")
    private String weixinPayType;
}
